/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package FileInformation.utils;

/**
 *
 * @author Nobody
 */
public enum ExtensionType {

    XLS,
    XLSX,
    GDA,
    CSV,
    UNKNOWN;

     public  static ExtensionType convertFromExtension(String extension) {
        if (extension.equals("xls")) {
            return ExtensionType.XLS;
        }
        if (extension.equals("xlsx")) {
            return ExtensionType.XLSX;
        }
        if (extension.equals("gda")) {
            return ExtensionType.GDA;
        }
        if (extension.equals("csv")) {
            return ExtensionType.CSV;
        }
        return  ExtensionType.UNKNOWN;

    }
}
